package webapp.mvc.controllers.forms;

import com.zoowii.formutils.annotations.Length;

import javax.validation.constraints.NotNull;

public class UpdateProductForm {
    @Length(min = 2, max = 50)
    private String name;
    @Length(min = 0, max = 2000)
    private String description;
    @Length(min = 0, max = 255)
    private String logoUrl;
    @NotNull
    private float price;
    private float discount = -1F;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public float getDiscount() {
        return discount;
    }

    public void setDiscount(float discount) {
        this.discount = discount;
    }
}
